import request from '@/utils/request'
export default {
  findMenuTree() {
    return request({
      url: '/permissions/tree',
      method: 'get'
    })
  },
  insertMenuItem(data) {
    return request({
      url: '/permissions/insert',
      method: 'post',
      data
    })
  },
  updateMenuItem(data) {
    return request({
      url: '/permissions/update',
      method: 'post',
      data
    })
  },
  deleteMenuItem(mid) {
    return request({
      url: '/permissions/delete',
      method: 'post',
      data: { id: mid }
    })
  }

}
